import { usePlugin, HasuraPayload } from "./plugin"

export function useHasura<T>(
    payload: HasuraPayload<T>
) {
    return usePlugin(`@sker/hasura`, async () => payload)
}